var app=angular.module("myApp",["ngCookies","ngMessages"]);
app.controller("form_login", ["$scope", "$http", '$cookies', "$cookieStore", "$location", function ($scope, $http, $cookies, $cookieStore, $location) {
    $scope.cookie = $cookies.get("msg");
    $scope.removecookie = function () {
        $cookies.remove("msg");
    };
    window.onbeforeunload = function () {
        $cookies.remove("msg");
    };

}]);

